import request from '@/config/axios'

// 查询线索
export const getClueCount = async (params) => {
  return await request.get({ url: `/crm/statistics-index/clue-count`, params })
}

// 查询客户
export const getCustomerCount = async (params) => {
  return await request.get({ url: `/crm/statistics-index/customer-count`, params })
}

// 查询商机
export const getBusinessCount = async (params) => {
  return await request.get({ url: `/crm/statistics-index/business-count`, params })
}

// 查询企业大数据
export const getEntStatistics = async (params) => {
  return await request.get({ url: `/ent/statistics/index`, params })
}

// 查询外呼统计
export const getCallStatistics = async (params) => {
  return await request.get({ url: `/call/statistics/index`, params })
}

// 仪表盘--销售简报和商机成交统计
export const getSalesCount = async (params) => {
  return await request.get({ url: `/crm/statistics-index/sales-count`, params })
}
